ci: Skip all yum operations if SKIP_INSTALLDEPS is set
authorColin Walters <walters@verbum.org>
Wed, 16 Oct 2019 13:32:36 +0000 (13:32 +0000)
committerColin Walters <walters@verbum.org>
Wed, 16 Oct 2019 13:32:36 +0000 (13:32 +0000)
This is used by our OpenShift Prow job; we use the
cosa buildroot container:

https://github.com/coreos/coreos-assembler/pull/730

And using `yum` at all means we can flake on fetching rpm metadata.

ci/installdeps.sh

index 29bd4e414fb3134576d468378ddf8001113b290d..4fc3280f5d1a5a99ea6c5082f838bba56a077873 100755 (executable)
@@ -3,6 +3,14 @@
 
 set -xeuo pipefail
 
+# This is used by our OpenShift Prow job; we use the
+# cosa buildroot container
+# https://github.com/coreos/coreos-assembler/pull/730
+# And using `yum` at all means we can flake on fetching rpm metadata
+if [ -n "${SKIP_INSTALLDEPS:-}" ]; then
+    exit 0
+fi
+
 dn=$(dirname $0)
 . ${dn}/libpaprci/libbuild.sh